<?php

/**
 * IndexController - The default controller class
 * 
 * @author
 * @version 
 */

class CommonController extends Zend_Controller_Action 
{
	

	
	public function init(){
		
		
		
	}
	
	public function preDispatch()
	{

		$this->view->addHelperPath(MY_ROOT.'/vhelpers');
		
		Zend_Controller_Action_HelperBroker::addPath(MY_ROOT.'/chelpers');
		
		//$this->getHelper('User')->getinfo();
		
	}

	public function gettotalearnAction(){
		$this->getHelper('layout')->disableLayout();
    	$this->getHelper('viewRenderer')->setNoRender();
    	$earnMoney = (time()-1358964528)*40;
    	$money = $earnMoney + CMyRandom::getRandomNumberMinMax($earnMoney,0,40);
    	echo number_format($money / 100, 2);
	}
	

	public function postAction(){
	
		//$this->_helper->viewRenderer->setNoRender();
		
		//$this->getHelper ('layout')->disableLayout ();
	
	}
    

    
}
